FROM node:18.6.0

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \  
    && echo "Asia/Shanghai" > /etc/timezone

RUN mkdir -p /home/node
WORKDIR /home/node

COPY . /home/node
RUN npm install --registry=https://registry.npmmirror.com

ENV ENV=test

CMD ["npm", "run", "start"]